package com.vincent.suchao.lcld;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.vincent.suchao.util.BetterImageView;

public class GSJJ_DetailActivity extends Activity implements OnClickListener {
	private BetterImageView photo_view;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_gszz_detail);
		init();
	}

	private void init() {
		photo_view = (BetterImageView) findViewById(R.id.photo_view);
		int resid = getIntent().getIntExtra("R.id.iv_zoom", R.drawable.gszz1);
		Bitmap bm = BitmapFactory.decodeResource(getResources(), resid);

		photo_view.setBitmap(bm);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {

		case R.id.b_back:
			finish();
			break;

		default:
			break;
		}

	}

}
